<template>
	<view class="feedback-index">
		<view class="list" v-if="dataList.length > 0">
			<view class="uni-card" v-for="(item, index) in dataList" :key="index">
				<view class="uni-card-header text-gray">{{item.create_time}}</view>
				<view class="uni-card-content">
					<view class="uni-card-content-inner">
						{{item.content}}
					</view>
				</view>
				
			</view>
		</view>
		
		<view class="no-data" v-else>你还没有提交过反馈</view>
		
		<navigator url="add" class="fixed-bottom-btn">提交反馈</navigator>
	</view>
</template>

<script>
	import Request from '../../common/request.js';
	
	export default {
		data() {
			return {
				dataList: []
			};
		},
		onLoad() {
			this.getList();
		},
		methods: {
			getList() {
				var that = this;
				Request.send({
					url: 'feedback/index',
					sCallback: function(res) {
						that.dataList = res.data;
					}
				})
			}
		}
	}
</script>

<style>
	.feedback-index{
		margin-bottom: 90upx;
	}
	
	.feedback-index .uni-card-header, .uni-card-content-inner{
		font-size: 28upx;
	}
</style>
